package com.person.ssoserver.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName:com.person.ssoserver.controller
 * @ClassName: TestController
 * @Description:
 * @author: Du Xiaobo
 * @date: 2020/1/16 15:10
 */

@RestController
@RequestMapping("/sso")
public class TestController {

    @Value("${server.port}")
    String port;

    @RequestMapping("/hi")
    public String test(@RequestParam(value = "name", defaultValue = "forezp") String name){
        return "hi " + name + " ,i am from port:" + port;
    }
}
